﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cxst.aspx.cs" Inherits="system_shiti_cxst" %>
<%@ Register Assembly="MagicAjax" Namespace="MagicAjax.UI.Controls" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
     <link href="../css.css" rel="stylesheet" type="text/css" />
    <script type='text/javascript' src='js/jquery.js'></script>
    <script type='text/javascript' src='js/jquery.simplemodal.js'></script>
    <script type='text/javascript' src='js/basic.js'></script>
    <link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' />
     <SCRIPT LANGUAGE="JavaScript">
function openwin(id) 
		{ 
           var window_width = 700;
           var window_height = 330;
           var window_top = (screen.height-window_height)/2;
           var window_left = (screen.width-window_width)/2;
           newWindow=window.open("showShiti.aspx?id="+id+"","","height="+window_height+",width="+window_width+",left="+window_left+",top="+window_top+",resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
           newWindow.focus();
        }
// End -->
</script>
</head>
<body>
    <form id="form1" runat="server">
    
    <ajax:AjaxPanel ID="AjaxPanel2" runat="server" width="100%">
    <div style="height: 480px;">
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <div style=" width:100%; height:25px; float:left; padding-top:5px; border-bottom:#CCCCCC 1px dashed">
                    <div style="width:85%;float:left;text-align:left;">   <asp:CheckBox ID="CheckBox1" runat="server"/>
                    题目编号：<asp:Label ID="Label1" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "pkID")%>'></asp:Label>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  题目：
                  <a href="javascript:openwin(<%#DataBinder.Eval(Container.DataItem, "pkID")%>)"> <%# LimitNum.Limit((DataBinder.Eval(Container.DataItem, "wtproname")).ToString(), 60)%></a>
                  
                   
                     </div>
                    <div style="width:15%;float:right; text-align:left">
                    &nbsp;&nbsp;&nbsp;&nbsp;题目类型：<%# DataBinder.Eval(Container.DataItem, "wtprotype")%>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                                   
                    </div>
                    </div>
                </ItemTemplate>       
            </asp:Repeater>
        </div>
        <div id='basic-modal'>
            <asp:CheckBox ID="CheckBox2" runat="server" Text="全选" OnCheckedChanged="CheckBox2_CheckedChanged" AutoPostBack="True" /> 
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="CheckBox3" runat="server" Text="反选" OnCheckedChanged="CheckBox3_CheckedChanged" AutoPostBack="True" /> 
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="AbsBottom" ImageUrl="~/image/sahnchu.jpg" OnClick="ImageButton1_Click" />
            (删除该题目会删除其对应的所有信息，包括答案及有该题目的试卷！)&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;<a href='#' class='basic'><b>添加试题</b></a>
            </div>
          <div>
        <asp:Label ID="LabCount" runat="server" Text="lbCount"></asp:Label>
        <asp:Label ID="LabPageCount" runat="server" Text="lbTotalPage"></asp:Label>
        <asp:Label ID="LabCurPage" runat="server" Text="lbCurPage"></asp:Label>
        <asp:HyperLink ID="HyLFirPage" runat="server">首页</asp:HyperLink>
        <asp:HyperLink ID="HyLPrePage" runat="server">上一页</asp:HyperLink>
        <asp:HyperLink ID="HyLNextPage" runat="server">下一页</asp:HyperLink>
        <asp:HyperLink ID="HyLastPage" runat="server">尾页</asp:HyperLink> 
    </div>
     </ajax:AjaxPanel>
    <div id="basic-modal-content">
	<ajax:AjaxPanel ID="AjaxPanel1" runat="server" width="700">
           
          <table border="0" cellpadding="0" cellspacing="0" width="700">
            <tr>
                <td width="116" style="height: 33px">
                    <div align="right">
                        题目类型：</div>
                </td>
                <td width="584" style="height: 33px">
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="86px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        <asp:ListItem>选择题</asp:ListItem>
                        <asp:ListItem>判断题</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="height: 122px" valign="top">
                    <div align="right">
                        题目内容：</div>
                </td>
                <td style="height: 122px">
                    <asp:TextBox ID="TextBox1" runat="server" Height="105px" TextMode="MultiLine"
                        Width="573px"></asp:TextBox></td>
            </tr>
               </table>
              <asp:Panel ID="Panel1" runat="server">
              <table border="0" cellpadding="0" cellspacing="0" width="700">
            <tr>
                <td style="height: 67px; text-align: right" valign="middle" width="116">
                    &nbsp;答案A：</td>
                <td style="height: 67px">
                    <asp:TextBox ID="TextBox2" runat="server" Height="41px" TextMode="MultiLine" Width="573px"></asp:TextBox></td>
                <td style="height: 67px">
                </td>
            </tr>
            <tr>
                <td style="height: 67px;text-align: right" valign="middle" width="116">
                    &nbsp;答案B：</td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server" Height="41px" TextMode="MultiLine"
                        Width="573px"></asp:TextBox></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="height: 67px;text-align: right"  valign="middle" width="116">
                    &nbsp;答案C：</td>
                <td>
                    <asp:TextBox ID="TextBox4" runat="server" Height="41px" TextMode="MultiLine"
                        Width="573px"></asp:TextBox></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="height: 67px;text-align: right" valign="middle" width="116">
                    答案D：</td>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server" Height="41px" TextMode="MultiLine" Width="573px"></asp:TextBox></td>
                <td>
                </td>
            </tr>
              <tr>
                  <td style="height: 67px; text-align: right" valign="middle">
                      正确答案：</td>
                  <td>
                      <asp:TextBox ID="TextBox6" runat="server" Height="41px" TextMode="MultiLine" Width="573px"></asp:TextBox></td>
                  <td>
                  </td>
              </tr>
                  <tr>
                      <td style="height: 37px; text-align: right" valign="middle">
                      </td>
                      <td style="height: 37px">
                          说明：请确保正确答案与答案A、B、C、D中的一个答案完全相同！</td>
                      <td style="height: 37px">
                      </td>
                  </tr>
                </table>
              </asp:Panel>
              <asp:Panel ID="Panel2" runat="server">
               <table border="0" cellpadding="0" cellspacing="0" width="700">
              <tr>
                  <td style="height: 67px; text-align: right; width: 116px;" valign="middle">
                      答案：</td>
                  <td>
                      <asp:TextBox ID="TextBox7" runat="server" Height="41px" TextMode="MultiLine" Width="573px"></asp:TextBox></td>
              </tr>
                   <tr>
                       <td style="width: 116px; height: 42px; text-align: right" valign="middle">
                       </td>
                       <td style="height: 42px">
                           说明：请填写正确或者错误作为题目的答案！</td>
                   </tr>
                </table>
              </asp:Panel>
              <table border="0" cellpadding="0" cellspacing="0" width="700">
               <tr>
                  <td style="height: 67px; text-align: right; width: 116px;" valign="middle">
                    题目所属专项：
                  </td>
                  <td>
                      <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" AutoPostBack="True">
                      </asp:CheckBoxList>
                  </td>
              </tr>
              <tr>
                  <td style="height: 30px; text-align: right; width: 76px;" valign="middle">
                  </td>
                  <td style="height: 30px">
                      <asp:Button ID="Button1" runat="server" Height="28px" Text="添加试题" OnClick="Button1_Click" />
                      &nbsp; &nbsp;&nbsp;
                      <asp:Button ID="Button2" runat="server" Height="28px" Text="取消添加" /></td>
              </tr>
                </table>
         </ajax:AjaxPanel>
         <table border="0" cellpadding="0" cellspacing="0" width="700">
           <tr>
                  <td style="height: 50px; text-align: right; width: 116px;" valign="middle">批量导入试题：
                  </td>
                  <td style="height: 50px">
                      <asp:FileUpload ID="FileUpload1" runat="server" Width="350px" />
                      <asp:Button ID="Button3" runat="server" Text="批量导入试题" OnClick="Button3_Click" />
                    </td>
              </tr>
         </table>
    </div>
    </form>
</body>
</html>
